package 传智题型;

import java.util.Arrays;
import java.util.Scanner;
import java.util.function.Function;

public class 求公式计算 {
    public static void main(String args[]){
        /*
        * w = t * 20% + h * 30% + e * 50%
        * 已保证 0<=h,e,t<=100
        * 求w的整数（去掉小数部分）
        * */
        Scanner sc = new Scanner(System.in);
        System.out.println("分别输入h,e,t:");

        Object[] number = Arrays.stream(sc.nextLine().split(" ")).map(Integer::parseInt).toArray();
        double t = (int) number[0];
        double h = (int) number[1];
        double e = (int) number[2];
        System.out.println(Math.round(t * 0.2 + h * 0.3 + e * 0.5));


    }
}
